﻿<Window x:Class="LAura.Options"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Properties="clr-namespace:LAura.Properties"
        Title="{x:Static Properties:Resources.OptionsWindowTitle}" Height="480" Width="520" WindowStartupLocation="CenterScreen"  MinWidth="400" MinHeight="350"
        SourceInitialized="WindowSourceInitialized">
    <DockPanel Background="{StaticResource TabControlBgBrush}" Margin="0,34,0,0">
        <Grid DockPanel.Dock="Bottom">
            <Rectangle Fill="#c1c2c3" VerticalAlignment="Top" Height="1" Margin="0,0,0,0"/>
            <Rectangle VerticalAlignment="Top" Height="4" Margin="0,1,0,0">
                <Rectangle.Fill>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Color="#AAc6c9cd" Offset="0"/>
                        <GradientStop Color="#e3e7ec" Offset="1"/>
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,10">
                <Button Name="OkButton" Content="{x:Static Properties:Resources.OptionsOkButton}" MinWidth="75" Height="23" Margin="0,0,7,0" Click="OkButtonClick"/>
                <Button Name="CancelButton" Content="{x:Static Properties:Resources.OptionsCancelButton}" MinWidth="75" Height="23" Margin="0,0,7,0" Click="CancelButtonClick"/>
                <Button Name="ApplyButton" Content="{x:Static Properties:Resources.OptionsApplyButton}" MinWidth="75" Height="23" Margin="0,0,7,0" IsEnabled="False" Click="ApplyButtonClick"/>
            </StackPanel>
        </Grid>
        <TabControl Style="{StaticResource TabControlStyle}" Margin="0,-34,0,0" SelectionChanged="TabControl_SelectionChanged">
            <TabItem Header="{x:Static Properties:Resources.OptionsGeneralTabHeader}" Style="{StaticResource TabItemStyle}" Margin="0,-2,0,0">
                <ScrollViewer VerticalScrollBarVisibility="Auto" >
                    <StackPanel Orientation="Vertical" Margin="10">
                        <TextBlock FontSize="24" FontWeight="Light" Text="{x:Static Properties:Resources.Options}"/>
                        <Separator Margin="0,0,0,10"/>
                        <CheckBox Name="RunFromStartupCheckBox" Content="{x:Static Properties:Resources.OptionsAutorun}" Click="CheckboxClick"/>
                    </StackPanel>
                </ScrollViewer>
            </TabItem>
            <TabItem Header="{x:Static Properties:Resources.OptionsAboutTabHeader}" Style="{StaticResource TabItemStyle}">
                <ScrollViewer VerticalScrollBarVisibility="Auto" >
                    <StackPanel Orientation="Vertical" Margin="10">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="31*"/>
                                <ColumnDefinition Width="19*"/>
                                <ColumnDefinition Width="425*"/>
                            </Grid.ColumnDefinitions>
                            <Image Width="64" Source="/Resources/appbar.reset.light.png" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,10,10,0" Opacity="1" Grid.Column="2"/>
                            <StackPanel Orientation="Vertical" Grid.ColumnSpan="3" Margin="0,0,0,336">
                                <TextBlock FontSize="24" FontWeight="Light" Text="{x:Static Properties:Resources.OptionsAbout}"/>
                                <TextBlock/>
                                <TextBlock Text="LAura - http://laura.codeplex.com" Margin="0,7,0,0"/>
                                <TextBlock><Run Text="{x:Static Properties:Resources.OptionsVersion}"/><Run Text=" "/><Run x:Name="BuildTag" Text="1.0.0.0"/></TextBlock>
                                <TextBlock Text="Copyright 2013 (c), Matthias R. Wiora (mwiora - Microsoft Employee)"/>
                                <TextBlock Text=""/>
                                <TextBlock Text="{x:Static Properties:Resources.OptionsLicense}" TextWrapping="Wrap"/>
                                <TextBlock Text="{x:Static Properties:Resources.OptionsAuraDescription}" TextWrapping="Wrap"/>
                                <TextBlock Text="{x:Static Properties:Resources.OptionsIcons}" TextWrapping="Wrap"/>
                                <TextBlock Text=""/>
                                <TextBlock Text="{x:Static Properties:Resources.OptionsCopyright}" TextWrapping="Wrap"/>
                                <TextBlock/>
                                <TextBlock Text=""/>
                                <TextBlock />

                            </StackPanel>
                        </Grid>
                    </StackPanel>
                </ScrollViewer>
            </TabItem>
        </TabControl>
    </DockPanel>
</Window>
